import java.util.Comparator;
import java.util.PriorityQueue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ZhongJinTao
 * Date: 2024-04-12
 * Time: 21:04
 */
class LestIntComp implements Comparator<Integer> {
    @Override
    public int compare(Integer o1, Integer o2) {
        return o1 - o2;
    }
}

public class Test {
    public static void main(String[] args) {
        LestIntComp lestIntComp = new LestIntComp();
        PriorityQueue<Integer> queue = new PriorityQueue(lestIntComp);
        queue.offer();//增
        queue.poll();//删
        queue.contains();
        queue.clear();
        queue.peek();
    }
}
